package org.example.foodhealth.repository;

import org.example.foodhealth.bean.UserLogin;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface UserLoginRepository extends JpaRepository<UserLogin,String> {
    Optional<UserLogin> findByPhone(String phone);

    Optional<UserLogin> findByEmail(String email);
}
